<div class="row-fluid">
<?php
if($this->input->cookie('search')){
			$searchData = $this->input->cookie('search');
			$str = explode("|",$searchData);
			if(count($str) >2){
				$default =array();
				$default['fieldSearch'] = $str[0];
				$default['textSearch'] = $str[1];
				$default['selCondition'] = $str[2];
			}
			}
?>
<form  id="frmAdvancedNormal" name="frmAdvancedNormal" method="post" action="<?php echo @$this->url_search;?>" class="form-inline">
			<input class="input-medium search-query" type="text" name="txtSearch" id="txtSearchAdvanced" value="<?php echo @$default['textSearch'];?>" style="width:300px;" placeholder="Chuỗi cần tìm..."/>
			<select name="selFieldSearch" style="min-width:150px;">
			<?php
			foreach ($datas as $keys => $vals) {
			$check = "";
			if(@$default['fieldSearch'] == $keys)
			{
				$check = " selected";
			}
			?>
			<option value="<?php echo $keys;?>" <?php echo $check;?>><?php echo $vals;?></option>
						  
			<?php
			}?>         
			</select> 
			<select name="selCondition" style="width:100px;">
			
			<option value="like" <?php echo (@$default['selCondition'] == 'like')?' selected':''?>>Gần đúng</option>
			<option value="=" <?php echo (@$default['selCondition'] != 'like')?' selected':''?>>Chính xác</option>
			</select> 						
			<input class="btn btn-primary" type="submit" name="btnSearchAdvanced" id="btnSearchAdvanced" value="Tìm kiếm" />
			<a href="<?php echo $this->url_index;?>/clean_search" class="btn">Hiển thị tất cả</a>
			</form>
 </div>
<br>